<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
     <!-- 开发版 -->
    <script src="https://vuejs.org/js/vue.js"></script>
</head>
<body>
    <div id="app">
        <button v-on:click="changeImg">切换图片</button>
        <hr>
        <img v-bind:src="imgsrc" alt="">
    </div>
    <script>
        var app = new Vue({
            el:'#app',
            data:{
                imgsrc:'https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3892521478,1695688217&fm=26&gp=0.jpg'
            },
            methods:{
                changeImg(){
                    this.imgsrc = 'https://dss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2534506313,1688529724&fm=26&gp=0.jpg'
                }
            }
        })
    </script>
</body>
</html>